import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from "../Home";
import vue1 from "../views/vue1";
import vue2 from "../views/vue2";
import vue3 from "../views/vue3";
import vue4 from "../views/vue4";
import vue5 from "../views/vue5";
import vue6 from "../views/vue6";
import vue7 from "../views/vue7";
import vue8 from "../views/vue8";
import vue9 from "../views/vue9";
import vue11 from "../views/vue11";
import vue12 from "../views/vue12";
import vue13 from "../views/vue13";
import vue14 from "../views/vue14";
import vue15 from "../views/vue15";
import vue16 from "../views/vue16";
import vue17 from "../views/vue17";
import vue18 from "../views/vue18";
import vue19 from "../views/vue19";
import jjfs from "../views/jczl/jjfs";
import ldxx from "../views/jczl/ldxx";
import lcxx from "../views/jczl/lcxx";
import fwxx from "../views/jczl/fwxx";
import yzxx from "../views/jczl/yzxx";
import zhxx from "../views/jczl/zhxx";
import xzlgl from "../views/jczl/xzlgl";
import zzgl from "../views/jczl/zzgl";
import spgl from "../views/jczl/spgl";

import Login from "../Login";
import Xiugai from "../Xiugai";
import Hello from "../views/Hello";
Vue.use(VueRouter)
const VueRouterPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (to) {
  return VueRouterPush.call(this, to).catch(err => err)
}
export default new VueRouter({
  mode: 'history',
  base:'/views/',
  routes: [
    {path: '/', component: Login},
    {path: '/home', component: Home},
    {path: '/Xiugai', component: Xiugai},
    {path: '/Home', name:'/Home', component: Home, props:true,redirect: '/Hello',
      children:[
        {path: '/vue1',component: vue1},
        {path: '/vue2',component: vue2},
        {path: '/vue3',component: vue3},
        {path: '/vue4',component: vue4},
        {path: '/vue5',component: vue5},
        {path: '/vue6',component: vue6},
        {path: '/vue7',component: vue7},
        {path: '/vue8',component: vue8},
        {path: '/vue9',component: vue9},
        {path: '/Hello',component: Hello},
        {path: '/vue11',component: vue11},
        {path: '/vue12',component: vue12},
        {path: '/vue13',component: vue13},
        {path: '/vue14',component: vue14},
        {path: '/vue15',component: vue15},
        {path: '/vue16',component: vue16},
        {path: '/vue17',component: vue17},
        {path: '/vue18',component: vue18},
        {path: '/vue19',component: vue19},
        {path: '/jjfs',component: jjfs},
        {path: '/ldxx',component: ldxx},
        {path: '/lcxx',component: lcxx},
        {path: '/fwxx',component: fwxx},
        {path: '/yzxx',component: yzxx},
        {path: '/zhxx',component: zhxx},
        {path: '/xzlgl',component: xzlgl},
        {path: '/zzgl',component: zzgl},
        {path: '/spgl',component: spgl},
      ]
    },

  ]
});




